//
//  Menu1TableViewCell.swift
//  iModern
//
//  Created by 立雄 王 on 15/9/7.
//  Copyright (c) 2015年 com.starlooking. All rights reserved.
//

import UIKit

class Menu2TableViewCell: TableViewCell
{
    
    var activity = NSDictionary()
    
    let __name_label_tag         = 61
    
    override func awakeFromNib()
    {
        super.awakeFromNib()
        // Initialization code
        
        
        initNameLabel()
        
    }
    
    func setData(data: NSMutableDictionary)
    {
        activity = data
        let advertising = data["article"] as! [String:AnyObject]
        _     = advertising["contact"] as! NSDictionary
    
    }
    
    func initNameLabel()
    {
        let screen = UIScreen.mainScreen().bounds
        var label  = self.viewWithTag(__name_label_tag) as? UILabel
        if (label == nil)
        {
            let frame = CGRect(x: 10, y: 5, width: screen.size.width - 110, height: 40)
            label = UILabel(frame: frame)
            label!.font = UIFont.systemFontOfSize(15)
            label!.tag = __name_label_tag
            label?.text = "修改密码"
            label?.textColor = UIColor.grayColor()
            self.addSubview(label!)
        }
    }

    override func setSelected(selected: Bool, animated: Bool)
    {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}

